﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TXTD.Admin.Data.Entitys.System;

namespace TXTD.Admin.Data.EntityConfiguration.System
{
    public class Log4NetEntityTypeConfiguration : IEntityTypeConfiguration<Log4Net>
    {
        public void Configure(EntityTypeBuilder<Log4Net> builder)
        {
            //主键
            builder.HasKey(e => e.Id);
            //自增长
            builder.Property(e => e.Id).ValueGeneratedOnAdd();
        }
    }
}
